﻿// ***********************************************************************
// Project			: Micua
// Assembly         : Micua.IDAL
// Author           : iceStone
// Created          : 2013-11-18 11:59
//
// Last Modified By : iceStone
// Last Modified On : 2014-01-04 20:39
// ***********************************************************************
// <copyright file="IDbSession.cs" company="Wedn.Net">
//     Copyright (c) Wedn.Net. All rights reserved.
// </copyright>
// <summary>数据库上下文实例约束接口</summary>
// ***********************************************************************
using System;

namespace Micua.IDAL
{
    /// <summary>
    /// DbSession基接口
    /// </summary>
    public partial interface IDbSession : IDisposable
    {
		/// <summary>
        /// ICategoryRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		ICategoryRepository CategoryRepository { get; }
		/// <summary>
        /// ICommentRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		ICommentRepository CommentRepository { get; }
		/// <summary>
        /// ICommentMetaRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		ICommentMetaRepository CommentMetaRepository { get; }
		/// <summary>
        /// ILinkRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		ILinkRepository LinkRepository { get; }
		/// <summary>
        /// IOptionRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		IOptionRepository OptionRepository { get; }
		/// <summary>
        /// IPostRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		IPostRepository PostRepository { get; }
		/// <summary>
        /// IPostMetaRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		IPostMetaRepository PostMetaRepository { get; }
		/// <summary>
        /// ITagRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		ITagRepository TagRepository { get; }
		/// <summary>
        /// IUserRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		IUserRepository UserRepository { get; }
		/// <summary>
        /// IUserMetaRepository 实例接口
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
		IUserMetaRepository UserMetaRepository { get; }
		/// <summary>
        /// 保存数据库的改变状态
        /// </summary>
		/// <remarks>
		///  2013-11-18 19:06 Created By iceStone
		///  2014-01-04 20:39 Modified By iceStone
		/// </remarks>
        /// <returns>受影响行数</returns>
        int SaveChanges();
	}	
}